// 将一些常用的数据从对应子模块的state中提取出来，并返回一个对象，帮助我们快速获取。
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  userId: state => state.user.userInfo.userId,
  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username
}
export default getters
